.class public Lnbisdk/en;
.super Lnbisdk/lf;


# static fields
.field private static wQ:[Lcom/nbi/map/android/PinImage;


# instance fields
.field private wA:I

.field private wB:[I

.field private wC:[D

.field private wD:I

.field private wE:Z

.field private wF:I

.field private wG:I

.field private wH:I

.field protected wI:Z

.field protected wJ:Z

.field private wK:I

.field private wL:J

.field private wM:Z

.field private wN:Lcom/nbi/map/data/Rectangle;

.field private wO:[Lcom/nbi/map/android/PinImage;

.field private wP:[Ljava/lang/String;

.field private wR:[Ljava/lang/String;

.field private ws:Ljava/lang/String;

.field private wt:Lnbisdk/hc;

.field private wu:Lnbisdk/kn;

.field private wv:Lnbisdk/kn;

.field private ww:Lcom/nbi/map/android/Pin;

.field private wx:Lcom/nbi/map/android/Pin;

.field private wy:I

.field private wz:I


# direct methods
.method protected constructor <init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;Lnbisdk/lf;Lnbisdk/cd;)V
    .locals 8

    const/4 v1, -0x1

    const/4 v7, 0x7

    const/4 v6, 0x5

    const/4 v3, 0x2

    const/4 v5, 0x0

    invoke-direct {p0, p1, p2, p3, p4}, Lnbisdk/lf;-><init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;Lnbisdk/lf;Lnbisdk/cd;)V

    const-string v0, "PinLayer"

    iput-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    iput v1, p0, Lnbisdk/en;->wy:I

    iput v1, p0, Lnbisdk/en;->wz:I

    iput v1, p0, Lnbisdk/en;->wA:I

    new-array v0, v3, [I

    iput-object v0, p0, Lnbisdk/en;->wB:[I

    new-array v0, v3, [D

    iput-object v0, p0, Lnbisdk/en;->wC:[D

    const/16 v0, 0x14

    iput v0, p0, Lnbisdk/en;->wD:I

    iput-boolean v5, p0, Lnbisdk/en;->wE:Z

    const/16 v0, 0x3c

    iput v0, p0, Lnbisdk/en;->wF:I

    const v0, -0xffff01

    iput v0, p0, Lnbisdk/en;->wG:I

    iput v5, p0, Lnbisdk/en;->wH:I

    const/16 v0, 0x1f4

    iput v0, p0, Lnbisdk/en;->wK:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/en;->wL:J

    new-instance v0, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v0}, Lcom/nbi/map/data/Rectangle;-><init>()V

    iput-object v0, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    const/16 v0, 0xc

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "start_flag.png"

    aput-object v1, v0, v5

    const/4 v1, 0x1

    const-string v2, "destination_flag.png"

    aput-object v2, v0, v1

    const-string v1, "pin_red.png"

    aput-object v1, v0, v3

    const/4 v1, 0x3

    const-string v2, "pin_blue.png"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "pin_green.png"

    aput-object v2, v0, v1

    const-string v1, "pin_premium.png"

    aput-object v1, v0, v6

    const/4 v1, 0x6

    const-string v2, "pin_yellow.png"

    aput-object v2, v0, v1

    const-string v1, "pin_drag.png"

    aput-object v1, v0, v7

    const/16 v1, 0x8

    const-string v2, "traffic_minor.png"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    const-string v2, "traffic_major.png"

    aput-object v2, v0, v1

    const/16 v1, 0xa

    const-string v2, "traffic_severe.png"

    aput-object v2, v0, v1

    const/16 v1, 0xb

    const-string v2, "empty_pin.png"

    aput-object v2, v0, v1

    iput-object v0, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    new-array v0, v6, [Ljava/lang/String;

    const-string v1, "bubble_left.png"

    aput-object v1, v0, v5

    const/4 v1, 0x1

    const-string v2, "bubble_strip.png"

    aput-object v2, v0, v1

    const-string v1, "bubble_right.png"

    aput-object v1, v0, v3

    const/4 v1, 0x3

    const-string v2, "bubble_point.png"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "map_bubble_arrow.png"

    aput-object v2, v0, v1

    iput-object v0, p0, Lnbisdk/en;->wR:[Ljava/lang/String;

    new-instance v0, Lnbisdk/hc;

    invoke-direct {v0}, Lnbisdk/hc;-><init>()V

    iput-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {p0}, Lnbisdk/en;->aA()Lnbisdk/do;

    move-result-object v0

    const/16 v1, 0xc

    new-array v1, v1, [Lcom/nbi/map/android/PinImage;

    iput-object v1, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    move v1, v5

    :goto_0
    const/16 v2, 0xc

    if-ge v1, v2, :cond_4

    iget-object v2, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v2, v2, v1

    invoke-virtual {v0, v2}, Lnbisdk/do;->j(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v2

    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    new-instance v4, Lcom/nbi/map/android/PinImage;

    invoke-direct {v4}, Lcom/nbi/map/android/PinImage;-><init>()V

    aput-object v4, v3, v1

    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    invoke-virtual {v3, v2}, Lcom/nbi/map/android/PinImage;->setImage(Landroid/graphics/Bitmap;)V

    iget-object v3, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v3, v3, v1

    const-string v4, "start_flag.png"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    iget-object v3, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v3, v3, v1

    const-string v4, "destination_flag.png"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    :cond_0
    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    const/4 v4, 0x4

    invoke-virtual {v3, v4}, Lcom/nbi/map/android/PinImage;->setTipX(I)V

    :goto_1
    iget-object v3, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v3, v3, v1

    const-string v4, "traffic_minor.png"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v3, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v3, v3, v1

    const-string v4, "traffic_major.png"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v3, p0, Lnbisdk/en;->wP:[Ljava/lang/String;

    aget-object v3, v3, v1

    const-string v4, "traffic_severe.png"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    :cond_1
    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    shl-int/lit8 v2, v2, 0x1

    div-int/lit8 v2, v2, 0x3

    invoke-virtual {v3, v2}, Lcom/nbi/map/android/PinImage;->setTipY(I)V

    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    invoke-virtual {v3, v4}, Lcom/nbi/map/android/PinImage;->setTipX(I)V

    goto :goto_1

    :cond_3
    iget-object v3, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    invoke-virtual {v3, v2}, Lcom/nbi/map/android/PinImage;->setTipY(I)V

    goto :goto_2

    :cond_4
    new-array v1, v6, [Lcom/nbi/map/android/PinImage;

    sput-object v1, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    move v1, v5

    :goto_3
    if-ge v1, v6, :cond_5

    iget-object v2, p0, Lnbisdk/en;->wR:[Ljava/lang/String;

    aget-object v2, v2, v1

    invoke-virtual {v0, v2}, Lnbisdk/do;->j(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v2

    sget-object v3, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    new-instance v4, Lcom/nbi/map/android/PinImage;

    invoke-direct {v4}, Lcom/nbi/map/android/PinImage;-><init>()V

    aput-object v4, v3, v1

    sget-object v3, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    aget-object v3, v3, v1

    invoke-virtual {v3, v2}, Lcom/nbi/map/android/PinImage;->setImage(Landroid/graphics/Bitmap;)V

    sget-object v2, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    aget-object v2, v2, v1

    invoke-virtual {v2, v5}, Lcom/nbi/map/android/PinImage;->setTipX(I)V

    sget-object v2, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    aget-object v2, v2, v1

    invoke-virtual {v2, v5}, Lcom/nbi/map/android/PinImage;->setTipY(I)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    :cond_5
    new-instance v0, Lcom/nbi/map/data/MapLocation;

    invoke-direct {v0}, Lcom/nbi/map/data/MapLocation;-><init>()V

    invoke-virtual {p0}, Lnbisdk/en;->ca()D

    move-result-wide v1

    invoke-virtual {p0}, Lnbisdk/en;->cb()D

    move-result-wide v3

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/nbi/map/data/MapLocation;->setLatLon(DD)V

    new-instance v1, Lcom/nbi/map/data/Place;

    const-string v2, ""

    invoke-direct {v1, v2, v0}, Lcom/nbi/map/data/Place;-><init>(Ljava/lang/String;Lcom/nbi/map/data/MapLocation;)V

    new-instance v0, Lcom/nbi/map/android/Pin;

    const/16 v2, 0x8

    invoke-direct {v0, v2, v1}, Lcom/nbi/map/android/Pin;-><init>(ILcom/nbi/map/data/Place;)V

    iput-object v0, p0, Lnbisdk/en;->ww:Lcom/nbi/map/android/Pin;

    iget-object v0, p0, Lnbisdk/en;->ww:Lcom/nbi/map/android/Pin;

    iget-object v1, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v1, v1, v7

    invoke-virtual {v0, v1}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    iget-object v0, p0, Lnbisdk/en;->ww:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v0

    iget-object v1, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v1, v1, v7

    invoke-virtual {v1}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nbi/map/android/PinImage;->setTipX(I)V

    iget-object v1, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v1, v1, v7

    invoke-virtual {v1}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nbi/map/android/PinImage;->setTipY(I)V

    new-instance v0, Lnbisdk/kn;

    iget-object v1, p0, Lnbisdk/en;->ww:Lcom/nbi/map/android/Pin;

    invoke-direct {v0, v1}, Lnbisdk/kn;-><init>(Lcom/nbi/map/android/Pin;)V

    iput-object v0, p0, Lnbisdk/en;->wu:Lnbisdk/kn;

    invoke-static {}, Landroid/view/ViewConfiguration;->getLongPressTimeout()I

    move-result v0

    iput v0, p0, Lnbisdk/en;->wK:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/en;->wI:Z

    iput-boolean v5, p0, Lnbisdk/en;->wJ:Z

    invoke-virtual {p0}, Lnbisdk/en;->hZ()Lcom/nbi/common/NBIContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/bl;

    invoke-virtual {v0}, Lnbisdk/bl;->jw()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    iget v1, p0, Lnbisdk/en;->wD:I

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lnbisdk/en;->wD:I

    return-void
.end method

.method private a(Lnbisdk/kn;)Lcom/nbi/map/data/Rectangle;
    .locals 3

    invoke-virtual {p1, p0}, Lnbisdk/kn;->b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    iget v2, p0, Lnbisdk/en;->wD:I

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v1

    iget v2, p0, Lnbisdk/en;->wD:I

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v1

    iget v2, p0, Lnbisdk/en;->wD:I

    shl-int/lit8 v2, v2, 0x1

    add-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    iget v2, p0, Lnbisdk/en;->wD:I

    shl-int/lit8 v2, v2, 0x1

    add-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    return-object v0
.end method

.method private a(Lnbisdk/kn;Z)V
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x1

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-boolean v0, p1, Lnbisdk/au;->xr:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v0

    const/4 v1, 0x2

    new-array v5, v1, [I

    invoke-virtual {p1}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p1}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->a(DD[I)V

    invoke-virtual {p1, p0}, Lnbisdk/kn;->b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v2

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v4

    add-int/2addr v4, v2

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v1

    add-int/2addr v1, v3

    invoke-virtual {v0, v2, v3}, Lnbisdk/kr;->c(II)Z

    move-result v5

    if-nez v5, :cond_2

    move v0, v6

    :goto_1
    if-eqz v0, :cond_5

    invoke-virtual {p1}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p1}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    move-object v0, p0

    move v5, v6

    move v6, p2

    invoke-virtual/range {v0 .. v6}, Lnbisdk/en;->a(DDZZ)V

    goto :goto_0

    :cond_2
    invoke-virtual {v0, v4, v3}, Lnbisdk/kr;->c(II)Z

    move-result v3

    if-nez v3, :cond_3

    move v0, v6

    goto :goto_1

    :cond_3
    invoke-virtual {v0, v2, v1}, Lnbisdk/kr;->c(II)Z

    move-result v2

    if-nez v2, :cond_4

    move v0, v6

    goto :goto_1

    :cond_4
    invoke-virtual {v0, v4, v1}, Lnbisdk/kr;->c(II)Z

    move-result v0

    if-nez v0, :cond_a

    move v0, v6

    goto :goto_1

    :cond_5
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p1, p0}, Lnbisdk/kn;->c(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v2

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v4

    add-int/2addr v4, v2

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    if-gez v2, :cond_9

    move v1, v2

    :goto_2
    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    if-le v4, v2, :cond_8

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v0

    sub-int v0, v4, v0

    add-int/lit8 v0, v0, 0xa

    :goto_3
    if-gez v3, :cond_7

    move v1, v3

    :goto_4
    if-nez v0, :cond_6

    if-eqz v1, :cond_0

    :cond_6
    invoke-virtual {p0, v0, v1, v7, p2}, Lnbisdk/en;->a(IIZZ)V

    goto/16 :goto_0

    :cond_7
    move v1, v7

    goto :goto_4

    :cond_8
    move v0, v1

    goto :goto_3

    :cond_9
    move v1, v7

    goto :goto_2

    :cond_a
    move v0, v7

    goto :goto_1
.end method

.method private a(I[D)Z
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    const/4 v0, -0x1

    if-ne p1, v0, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    move v0, v3

    :goto_1
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iget v2, v1, Lnbisdk/au;->xq:I

    if-ne v2, p1, :cond_1

    aget-wide v2, p2, v3

    invoke-virtual {v1, v2, v3}, Lnbisdk/au;->setLatitude(D)V

    aget-wide v2, p2, v4

    invoke-virtual {v1, v2, v3}, Lnbisdk/au;->setLongitude(D)V

    move v0, v4

    goto :goto_0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    move v0, v3

    goto :goto_0
.end method

.method static synthetic a(Lnbisdk/en;Z)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/en;->wM:Z

    return v0
.end method

.method private a(Lnbisdk/kn;II)Z
    .locals 1

    invoke-direct {p0, p1}, Lnbisdk/en;->a(Lnbisdk/kn;)Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {v0, p2, p3}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    return v0
.end method

.method private b([I)I
    .locals 9

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, -0x1

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    aget v1, p1, v6

    aget v2, p1, v7

    aget v3, p1, v6

    aget v4, p1, v7

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V

    move v1, v5

    move v2, v6

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v2, v0, :cond_3

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v2}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    aget v3, p1, v6

    aget v4, p1, v7

    invoke-direct {p0, v0, v3, v4}, Lnbisdk/en;->a(Lnbisdk/kn;II)Z

    move-result v3

    if-eqz v3, :cond_1

    if-ne v1, v5, :cond_0

    iget v1, v0, Lnbisdk/au;->xq:I

    :cond_0
    iget-boolean v3, v0, Lnbisdk/au;->xr:Z

    if-eqz v3, :cond_1

    iget v0, v0, Lnbisdk/au;->xq:I

    move v8, v1

    move v1, v0

    move v0, v8

    :goto_1
    if-ne v1, v5, :cond_2

    if-eq v0, v5, :cond_2

    :goto_2
    return v0

    :cond_1
    move v0, v1

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    move v1, v0

    goto :goto_0

    :cond_2
    move v0, v1

    goto :goto_2

    :cond_3
    move v0, v1

    move v1, v5

    goto :goto_1
.end method

.method private b(Lnbisdk/nv;)Z
    .locals 13

    const/16 v12, 0x40

    const/4 v11, 0x2

    const/4 v10, -0x1

    const/4 v9, 0x1

    const/4 v8, 0x0

    invoke-virtual {p1}, Lnbisdk/nv;->aQ()Landroid/view/MotionEvent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    move v0, v8

    :goto_0
    return v0

    :pswitch_0
    new-array v2, v11, [I

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    aput v0, v2, v8

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    aput v0, v2, v9

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v3

    if-eq v3, v10, :cond_1

    invoke-direct {p0, v3}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-eqz v0, :cond_1

    new-instance v4, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v4}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {v0, p0, v4}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    aget v0, v2, v8

    aget v5, v2, v9

    invoke-virtual {v4, v0, v5}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    if-eqz v0, :cond_1

    iput v10, p0, Lnbisdk/en;->wy:I

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "Click in bubble"

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    const/4 v0, 0x4

    iput v0, p0, Lnbisdk/en;->wH:I

    move v0, v9

    goto :goto_0

    :cond_1
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    aget v4, v2, v8

    aget v5, v2, v9

    aget v6, v2, v8

    aget v7, v2, v9

    invoke-virtual {v0, v4, v5, v6, v7}, Landroid/graphics/Rect;->set(IIII)V

    move v4, v8

    :goto_1
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v4, v0, :cond_a

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v4}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget v5, v0, Lnbisdk/kn;->xq:I

    if-ne v5, v3, :cond_4

    aget v5, v2, v8

    aget v6, v2, v9

    invoke-direct {p0, v0, v5, v6}, Lnbisdk/en;->a(Lnbisdk/kn;II)Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v9

    :goto_2
    if-eqz v0, :cond_5

    iput v3, p0, Lnbisdk/en;->wz:I

    iput v10, p0, Lnbisdk/en;->wy:I

    iput v11, p0, Lnbisdk/en;->wH:I

    iget-object v0, p0, Lnbisdk/en;->wB:[I

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    aput v2, v0, v8

    iget-object v0, p0, Lnbisdk/en;->wB:[I

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    aput v1, v0, v9

    iget v0, p0, Lnbisdk/en;->wz:I

    invoke-direct {p0, v0}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0, p0}, Lnbisdk/kn;->b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    iget-object v0, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v0

    sub-int/2addr v0, v12

    iget-object v1, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    sub-int/2addr v1, v12

    iget-object v2, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    add-int/2addr v2, v0

    add-int/lit8 v2, v2, 0x40

    iget-object v3, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v3

    add-int/2addr v3, v1

    add-int/lit8 v3, v3, 0x40

    iget-object v4, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v4, v0, v1, v2, v3}, Lcom/nbi/map/data/Rectangle;->set(IIII)V

    :cond_2
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/en;->wL:J

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "Using the current selected pin at this location."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    move v0, v9

    goto/16 :goto_0

    :cond_4
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto/16 :goto_1

    :cond_5
    invoke-direct {p0, v2}, Lnbisdk/en;->e([I)I

    move-result v0

    if-eq v0, v10, :cond_8

    iput v0, p0, Lnbisdk/en;->wz:I

    iput v10, p0, Lnbisdk/en;->wy:I

    iput v11, p0, Lnbisdk/en;->wH:I

    iget-object v0, p0, Lnbisdk/en;->wB:[I

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    aput v2, v0, v8

    iget-object v0, p0, Lnbisdk/en;->wB:[I

    invoke-virtual {v1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    aput v1, v0, v9

    iget v0, p0, Lnbisdk/en;->wz:I

    invoke-direct {p0, v0}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-eqz v0, :cond_6

    invoke-virtual {v0, p0}, Lnbisdk/kn;->b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    iget-object v0, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v0}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v0

    iget v1, p0, Lnbisdk/en;->wD:I

    sub-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    iget v2, p0, Lnbisdk/en;->wD:I

    sub-int/2addr v1, v2

    iget-object v2, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    add-int/2addr v2, v0

    iget v3, p0, Lnbisdk/en;->wD:I

    add-int/2addr v2, v3

    iget-object v3, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v3

    add-int/2addr v3, v1

    iget v4, p0, Lnbisdk/en;->wD:I

    add-int/2addr v3, v4

    iget-object v4, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v4, v0, v1, v2, v3}, Lcom/nbi/map/data/Rectangle;->set(IIII)V

    :cond_6
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/en;->wL:J

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_7

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "Found a pin at this location."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7
    move v0, v9

    goto/16 :goto_0

    :cond_8
    move v0, v8

    goto/16 :goto_0

    :pswitch_1
    invoke-direct {p0, v1}, Lnbisdk/en;->h(Landroid/view/MotionEvent;)Z

    move-result v0

    goto/16 :goto_0

    :pswitch_2
    invoke-direct {p0, v1}, Lnbisdk/en;->i(Landroid/view/MotionEvent;)Z

    move-result v0

    goto/16 :goto_0

    :pswitch_3
    iget v0, p0, Lnbisdk/en;->wH:I

    if-lez v0, :cond_9

    move v0, v9

    :goto_3
    invoke-direct {p0}, Lnbisdk/en;->kB()V

    goto/16 :goto_0

    :cond_9
    move v0, v8

    goto :goto_3

    :cond_a
    move v0, v8

    goto/16 :goto_2

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method

.method public static bj(I)Lcom/nbi/map/android/PinImage;
    .locals 1

    if-ltz p0, :cond_0

    const/4 v0, 0x5

    if-ge p0, v0, :cond_0

    sget-object v0, Lnbisdk/en;->wQ:[Lcom/nbi/map/android/PinImage;

    aget-object v0, v0, p0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private bk(I)Z
    .locals 4

    const/4 v3, 0x0

    move v1, v3

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget v2, v0, Lnbisdk/au;->xq:I

    if-ne v2, p1, :cond_0

    invoke-virtual {v0, p0}, Lnbisdk/kn;->a(Lnbisdk/lf;)V

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    move v0, v3

    goto :goto_1
.end method

.method private bl(I)Lnbisdk/kn;
    .locals 6

    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "getPinPlacemarkWithId() - trying to retrieve pin with id "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "getPinPlacemarkWithId() - number of placemarks: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v3}, Lnbisdk/hc;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    const/4 v1, 0x0

    move v2, v1

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v2, v1, :cond_3

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v2}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    sget-boolean v3, Lnbisdk/bk;->DEBUG:Z

    if-eqz v3, :cond_1

    iget-object v3, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "getPinPlacemarkWithId() - placemark at index "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ": "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v1}, Lnbisdk/au;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    iget v3, v1, Lnbisdk/au;->xq:I

    if-ne v3, p1, :cond_2

    move-object v0, v1

    check-cast v0, Lnbisdk/kn;

    move-object p0, v0

    move-object v1, p0

    :goto_1
    return-object v1

    :cond_2
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_0

    :cond_3
    const/4 v1, 0x0

    goto :goto_1
.end method

.method private c([I)I
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    aget v1, p1, v5

    aget v2, p1, v6

    aget v3, p1, v5

    aget v4, p1, v6

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V

    move v1, v5

    move v2, v5

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    aget v3, p1, v5

    aget v4, p1, v6

    invoke-direct {p0, v0, v3, v4}, Lnbisdk/en;->a(Lnbisdk/kn;II)Z

    move-result v0

    if-eqz v0, :cond_1

    add-int/lit8 v0, v2, 0x1

    :goto_1
    add-int/lit8 v1, v1, 0x1

    move v2, v0

    goto :goto_0

    :cond_0
    return v2

    :cond_1
    move v0, v2

    goto :goto_1
.end method

.method private d([I)I
    .locals 10

    const/4 v9, -0x1

    const/4 v8, 0x1

    const/4 v7, 0x0

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v1

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    invoke-direct {p0, p1}, Lnbisdk/en;->c([I)I

    move-result v2

    if-nez v2, :cond_1

    move v0, v9

    :cond_0
    :goto_0
    return v0

    :cond_1
    aget v3, p1, v7

    aget v4, p1, v8

    aget v5, p1, v7

    aget v6, p1, v8

    invoke-virtual {v0, v3, v4, v5, v6}, Landroid/graphics/Rect;->set(IIII)V

    if-eq v2, v8, :cond_2

    if-ne v1, v9, :cond_3

    :cond_2
    invoke-direct {p0, p1}, Lnbisdk/en;->b([I)I

    move-result v0

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v2

    move v3, v7

    :goto_1
    if-ge v3, v2, :cond_4

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v3}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget v0, v0, Lnbisdk/au;->xq:I

    if-eq v0, v1, :cond_4

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_4
    if-lt v3, v2, :cond_5

    move v3, v7

    :cond_5
    :goto_2
    if-ge v3, v2, :cond_a

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v3}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    aget v4, p1, v7

    aget v5, p1, v8

    invoke-direct {p0, v0, v4, v5}, Lnbisdk/en;->a(Lnbisdk/kn;II)Z

    move-result v4

    if-eqz v4, :cond_8

    iget v0, v0, Lnbisdk/au;->xq:I

    if-eq v1, v9, :cond_6

    if-eq v0, v1, :cond_8

    :cond_6
    move v1, v0

    move v0, v8

    :goto_3
    if-nez v0, :cond_9

    move v2, v7

    :goto_4
    if-ge v2, v1, :cond_9

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v2}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    aget v3, p1, v7

    aget v4, p1, v8

    invoke-direct {p0, v0, v3, v4}, Lnbisdk/en;->a(Lnbisdk/kn;II)Z

    move-result v3

    if-eqz v3, :cond_7

    iget v0, v0, Lnbisdk/au;->xq:I

    if-eq v1, v9, :cond_0

    if-ne v0, v1, :cond_0

    :cond_7
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_4

    :cond_8
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_2

    :cond_9
    move v0, v1

    goto :goto_0

    :cond_a
    move v0, v7

    goto :goto_3
.end method

.method private e([I)I
    .locals 15

    const/4 v14, 0x1

    const/4 v13, 0x0

    const/4 v1, -0x1

    const/16 v2, 0x81

    move v8, v13

    move v9, v2

    move v10, v1

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v8, v1, :cond_1

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v8}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Lnbisdk/kn;

    move-object v7, v0

    new-instance v11, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v11}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {v7}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v2

    invoke-virtual {v7}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v4

    iget-object v1, v7, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v1}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v12

    const/4 v1, 0x2

    new-array v6, v1, [I

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v1

    invoke-virtual/range {v1 .. v6}, Lnbisdk/kr;->a(DD[I)V

    aget v1, v6, v13

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {v11, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    invoke-virtual {v11, v1}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    aget v1, v6, v14

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {v11, v1}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    invoke-virtual {v11, v1}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    aget v1, p1, v13

    aget v2, p1, v14

    invoke-virtual {v11, v1, v2}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v1

    if-eqz v1, :cond_0

    iget v1, v7, Lnbisdk/au;->xq:I

    :goto_1
    return v1

    :cond_0
    invoke-direct {p0, v7}, Lnbisdk/en;->a(Lnbisdk/kn;)Lcom/nbi/map/data/Rectangle;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v2

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    add-int/2addr v3, v4

    aget v4, p1, v13

    aget v5, p1, v14

    invoke-virtual {v1, v4, v5}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v1

    if-eqz v1, :cond_2

    aget v1, p1, v13

    sub-int v1, v2, v1

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    aget v2, p1, v14

    sub-int v2, v3, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    add-int/2addr v1, v2

    if-ge v1, v9, :cond_2

    iget v2, v7, Lnbisdk/au;->xq:I

    :goto_2
    add-int/lit8 v3, v8, 0x1

    move v8, v3

    move v9, v1

    move v10, v2

    goto/16 :goto_0

    :cond_1
    move v1, v10

    goto :goto_1

    :cond_2
    move v1, v9

    move v2, v10

    goto :goto_2
.end method

.method private f(II)V
    .locals 4

    iget-object v0, p0, Lnbisdk/en;->wu:Lnbisdk/kn;

    if-eqz v0, :cond_0

    const/4 v0, 0x2

    new-array v0, v0, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v1

    invoke-virtual {v1, p1, p2, v0}, Lnbisdk/kr;->a(II[D)V

    iget-object v1, p0, Lnbisdk/en;->wu:Lnbisdk/kn;

    const/4 v2, 0x0

    aget-wide v2, v0, v2

    invoke-virtual {v1, v2, v3}, Lnbisdk/kn;->setLatitude(D)V

    iget-object v1, p0, Lnbisdk/en;->wu:Lnbisdk/kn;

    const/4 v2, 0x1

    aget-wide v2, v0, v2

    invoke-virtual {v1, v2, v3}, Lnbisdk/kn;->setLongitude(D)V

    :cond_0
    return-void
.end method

.method private h(Landroid/view/MotionEvent;)Z
    .locals 7

    const/4 v5, 0x4

    const/4 v4, -0x1

    const/4 v6, 0x1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    iget v2, p0, Lnbisdk/en;->wH:I

    const/4 v3, 0x3

    if-ne v2, v3, :cond_1

    sget-boolean v2, Lnbisdk/bk;->DEBUG:Z

    if-eqz v2, :cond_0

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v3, "Moving the pin."

    invoke-static {v2, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    const/4 v2, 0x2

    new-array v2, v2, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v3

    invoke-virtual {v3, v0, v1, v2}, Lnbisdk/kr;->a(II[D)V

    iget v3, p0, Lnbisdk/en;->wy:I

    invoke-direct {p0, v3, v2}, Lnbisdk/en;->a(I[D)Z

    invoke-direct {p0, v0, v1}, Lnbisdk/en;->f(II)V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    move v0, v6

    :goto_0
    return v0

    :cond_1
    iget v2, p0, Lnbisdk/en;->wH:I

    if-ne v2, v5, :cond_3

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v2

    if-eq v2, v4, :cond_8

    invoke-direct {p0, v2}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v2

    if-eqz v2, :cond_8

    new-instance v3, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v3}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {v2, p0, v3}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    invoke-virtual {v3, v0, v1}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    if-eqz v0, :cond_8

    iput v4, p0, Lnbisdk/en;->wy:I

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "handleMoveEvent() - Inside the bubble."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    iput v5, p0, Lnbisdk/en;->wH:I

    move v0, v6

    goto :goto_0

    :cond_3
    sget-boolean v2, Lnbisdk/bk;->DEBUG:Z

    if-eqz v2, :cond_4

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v3, "handleMoveEvent() - not in EVENT_STATE_MOVING"

    invoke-static {v2, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v2

    iget-wide v4, p0, Lnbisdk/en;->wL:J

    sub-long/2addr v2, v4

    long-to-int v2, v2

    sget-boolean v3, Lnbisdk/bk;->DEBUG:Z

    if-eqz v3, :cond_5

    iget-object v3, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "handleMoveEvent() - elapsed time: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v3, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    sget-boolean v2, Lnbisdk/bk;->DEBUG:Z

    if-eqz v2, :cond_6

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "handleMoveEvent() - long press timeout: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, p0, Lnbisdk/en;->wK:I

    invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_6
    iget-object v2, p0, Lnbisdk/en;->wN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2, v0, v1}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    if-eqz v0, :cond_7

    move v0, v6

    goto/16 :goto_0

    :cond_7
    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_8

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "handleMoveEvent() - OUTSIDE THE BITMAP REGION"

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_8
    const/4 v0, 0x0

    goto/16 :goto_0
.end method

.method private i(Landroid/view/MotionEvent;)Z
    .locals 13

    const/4 v12, 0x1

    const/4 v11, 0x0

    iget v0, p0, Lnbisdk/en;->wH:I

    if-lez v0, :cond_e

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "Up event occurred."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    move v0, v12

    :goto_0
    iget v1, p0, Lnbisdk/en;->wH:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_b

    iget v1, p0, Lnbisdk/en;->wy:I

    const/4 v2, -0x1

    if-eq v1, v2, :cond_b

    iget v1, p0, Lnbisdk/en;->wy:I

    invoke-direct {p0, v1}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v1

    iget-object v2, v1, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    const/4 v3, 0x2

    new-array v3, v3, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v4

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v5

    float-to-int v5, v5

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v6

    float-to-int v6, v6

    add-int/lit8 v6, v6, -0x3c

    invoke-virtual {v4, v5, v6, v3}, Lnbisdk/kr;->a(II[D)V

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v4

    invoke-virtual {v4}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v4

    iget v5, p0, Lnbisdk/en;->wy:I

    new-instance v6, Lcom/nbi/map/data/Coordinates;

    aget-wide v7, v3, v11

    aget-wide v9, v3, v12

    invoke-direct {v6, v7, v8, v9, v10}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    invoke-interface {v4, v5, v6}, Lnbisdk/no;->onPinDragEnd(ILcom/nbi/map/data/Coordinates;)Z

    move-result v4

    if-nez v4, :cond_1

    invoke-virtual {v2}, Lcom/nbi/map/android/Pin;->isDropPin()Z

    move-result v4

    if-eqz v4, :cond_8

    :cond_1
    sget-boolean v4, Lnbisdk/bk;->DEBUG:Z

    if-eqz v4, :cond_2

    iget-object v4, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Dropping the pin at x: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v6

    float-to-int v6, v6

    invoke-static {v6}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " y: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v6

    float-to-int v6, v6

    invoke-static {v6}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    iget v4, p0, Lnbisdk/en;->wy:I

    invoke-direct {p0, v4, v3}, Lnbisdk/en;->a(I[D)Z

    :goto_1
    invoke-virtual {v2}, Lcom/nbi/map/android/Pin;->isDropPin()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {v1, p0}, Lnbisdk/kn;->a(Lnbisdk/lf;)V

    :cond_3
    sget-boolean v2, Lnbisdk/bk;->DEBUG:Z

    if-eqz v2, :cond_4

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v3, "Done moving the pin."

    invoke-static {v2, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    iput v11, p0, Lnbisdk/en;->wH:I

    iget-object v2, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v2}, Lnbisdk/hc;->jM()V

    new-instance v2, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v2}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {v1, p0, v2}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    if-gez v1, :cond_d

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    :goto_2
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v3

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v4

    if-gez v4, :cond_a

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v2

    :goto_3
    if-nez v2, :cond_5

    if-eqz v1, :cond_6

    :cond_5
    invoke-virtual {p0, v2, v1, v11, v11}, Lnbisdk/en;->a(IIZZ)V

    :cond_6
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v1

    invoke-virtual {p0, p0, v1}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    :cond_7
    :goto_4
    invoke-direct {p0}, Lnbisdk/en;->kB()V

    return v0

    :cond_8
    sget-boolean v3, Lnbisdk/bk;->DEBUG:Z

    if-eqz v3, :cond_9

    iget-object v3, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Moving the pin to the original location at x: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lnbisdk/en;->wC:[D

    aget-wide v5, v5, v11

    invoke-static {v5, v6}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, " y: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lnbisdk/en;->wC:[D

    aget-wide v5, v5, v12

    invoke-static {v5, v6}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_9
    iget v3, p0, Lnbisdk/en;->wy:I

    iget-object v4, p0, Lnbisdk/en;->wC:[D

    invoke-direct {p0, v3, v4}, Lnbisdk/en;->a(I[D)Z

    goto/16 :goto_1

    :cond_a
    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v4

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v5

    add-int/2addr v4, v5

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v5

    if-le v4, v5, :cond_c

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v4

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    add-int/2addr v2, v4

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v3

    sub-int/2addr v2, v3

    goto :goto_3

    :cond_b
    iget v1, p0, Lnbisdk/en;->wH:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_7

    move v0, v11

    goto :goto_4

    :cond_c
    move v2, v11

    goto :goto_3

    :cond_d
    move v1, v11

    goto/16 :goto_2

    :cond_e
    move v0, v11

    goto/16 :goto_0
.end method

.method private kB()V
    .locals 1

    const/4 v0, -0x1

    iput v0, p0, Lnbisdk/en;->wy:I

    iput v0, p0, Lnbisdk/en;->wz:I

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/en;->wH:I

    return-void
.end method


# virtual methods
.method public final L(Z)Z
    .locals 11

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    new-instance v1, Lcom/nbi/map/data/Coordinates;

    const-wide v2, 0x4066800000000000L

    const-wide v4, 0x4066800000000000L

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    new-instance v2, Lcom/nbi/map/data/Coordinates;

    const-wide v3, -0x3f99800000000000L

    const-wide v5, -0x3f99800000000000L

    invoke-direct {v2, v3, v4, v5, v6}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    const/4 v0, 0x0

    move v3, v0

    :goto_1
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v3, v0, :cond_6

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v3}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    invoke-virtual {v0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v4

    invoke-virtual {v0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v6

    sget-boolean v8, Lnbisdk/bk;->DEBUG:Z

    if-eqz v8, :cond_1

    iget-object v8, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "pin:"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getTitle()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v9, " latitude:"

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v9, " longitude:"

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v8, v0}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v8

    cmpg-double v0, v4, v8

    if-gez v0, :cond_2

    invoke-virtual {v1, v4, v5}, Lcom/nbi/map/data/Coordinates;->setLatitude(D)V

    :cond_2
    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v8

    cmpl-double v0, v4, v8

    if-lez v0, :cond_3

    invoke-virtual {v2, v4, v5}, Lcom/nbi/map/data/Coordinates;->setLatitude(D)V

    :cond_3
    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v4

    cmpg-double v0, v6, v4

    if-gez v0, :cond_4

    invoke-virtual {v1, v6, v7}, Lcom/nbi/map/data/Coordinates;->setLongitude(D)V

    :cond_4
    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v4

    cmpl-double v0, v6, v4

    if-lez v0, :cond_5

    invoke-virtual {v2, v6, v7}, Lcom/nbi/map/data/Coordinates;->setLongitude(D)V

    :cond_5
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_6
    invoke-virtual {p0}, Lnbisdk/en;->hZ()Lcom/nbi/common/NBIContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/bl;

    invoke-virtual {v0}, Lnbisdk/bl;->jw()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    iget v3, v3, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    if-le v0, v3, :cond_8

    const/4 v0, 0x1

    :goto_2
    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v5

    sub-double/2addr v3, v5

    const-wide/high16 v5, 0x4020

    div-double/2addr v3, v5

    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v5

    sub-double/2addr v5, v3

    invoke-virtual {v1, v5, v6}, Lcom/nbi/map/data/Coordinates;->setLongitude(D)V

    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v5

    add-double/2addr v3, v5

    invoke-virtual {v2, v3, v4}, Lcom/nbi/map/data/Coordinates;->setLongitude(D)V

    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v5

    sub-double/2addr v3, v5

    if-eqz v0, :cond_9

    const-wide/high16 v5, 0x4010

    div-double v5, v3, v5

    :goto_3
    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v7

    add-double/2addr v5, v7

    invoke-virtual {v2, v5, v6}, Lcom/nbi/map/data/Coordinates;->setLatitude(D)V

    if-eqz v0, :cond_a

    const-wide/high16 v5, 0x4020

    div-double/2addr v3, v5

    :goto_4
    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v5

    sub-double v3, v5, v3

    invoke-virtual {v1, v3, v4}, Lcom/nbi/map/data/Coordinates;->setLatitude(D)V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_7

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "point1 - lat: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " lon: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "point2 - lat: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " lon: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v2}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7
    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/en;->wM:Z

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    new-instance v3, Lnbisdk/en$1;

    invoke-direct {v3, p0}, Lnbisdk/en$1;-><init>(Lnbisdk/en;)V

    const-wide/16 v4, 0x1f4

    invoke-virtual {v0, v3, v4, v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object p0

    check-cast p0, Lnbisdk/ao;

    const/4 v0, 0x0

    invoke-virtual {p0, v1, v2, v0, p1}, Lnbisdk/ao;->a(Lcom/nbi/map/data/Coordinates;Lcom/nbi/map/data/Coordinates;ZZ)Z

    const/4 v0, 0x1

    goto/16 :goto_0

    :cond_8
    const/4 v0, 0x0

    goto/16 :goto_2

    :cond_9
    const-wide/high16 v5, 0x4000

    div-double v5, v3, v5

    goto/16 :goto_3

    :cond_a
    const-wide/high16 v5, 0x4018

    div-double/2addr v3, v5

    goto/16 :goto_4
.end method

.method public final a(Lcom/nbi/map/android/Pin;ZZZ)I
    .locals 8

    const/16 v3, 0xb

    const/4 v2, 0x1

    new-instance v7, Lnbisdk/kn;

    invoke-direct {v7, p1}, Lnbisdk/kn;-><init>(Lcom/nbi/map/android/Pin;)V

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v0

    const/4 v1, 0x7

    if-gt v0, v1, :cond_0

    iget-object v0, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v1

    sub-int/2addr v1, v2

    aget-object v0, v0, v1

    invoke-virtual {p1, v0}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_0
    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v0

    const/16 v1, 0x9

    if-lt v0, v1, :cond_1

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v0

    if-gt v0, v3, :cond_1

    iget-object v0, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v1

    sub-int/2addr v1, v2

    aget-object v0, v0, v1

    invoke-virtual {p1, v0}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_1
    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v0

    const/16 v1, 0xc

    if-ne v0, v1, :cond_2

    invoke-virtual {p1}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    aget-object v0, v0, v3

    invoke-virtual {p1, v0}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_2
    if-eqz p2, :cond_3

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    check-cast v0, Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->ax()V

    :cond_3
    iput-boolean p2, v7, Lnbisdk/au;->xr:Z

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v7}, Lnbisdk/hc;->a(Lnbisdk/au;)V

    if-eqz p3, :cond_4

    invoke-virtual {v7}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {v7}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    const/4 v5, 0x0

    move-object v0, p0

    move v6, p4

    invoke-virtual/range {v0 .. v6}, Lnbisdk/en;->a(DDZZ)V

    :cond_4
    iget v0, v7, Lnbisdk/au;->xq:I

    return v0
.end method

.method public a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Z)V
    .locals 7

    const/4 v6, 0x3

    const/4 v5, 0x0

    invoke-virtual {p0}, Lnbisdk/en;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_6

    iget-boolean v0, p0, Lnbisdk/en;->wM:Z

    if-nez v0, :cond_6

    move v1, v5

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v1, v0, :cond_4

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->ba(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    const/4 v2, 0x1

    iget v3, p0, Lnbisdk/en;->wH:I

    if-ne v3, v6, :cond_0

    iget v3, v0, Lnbisdk/au;->xq:I

    iget v4, p0, Lnbisdk/en;->wy:I

    if-eq v3, v4, :cond_1

    :cond_0
    iget-object v3, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v3}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v3

    const/16 v4, 0x8

    if-ne v3, v4, :cond_2

    :cond_1
    move v2, v5

    :cond_2
    if-eqz v2, :cond_3

    invoke-virtual {v0, p1, p2, p0, p3}, Lnbisdk/kn;->a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Lnbisdk/lf;Z)V

    :cond_3
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_4
    iget v0, p0, Lnbisdk/en;->wH:I

    if-ne v0, v6, :cond_6

    iget-object v0, p0, Lnbisdk/en;->ww:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lnbisdk/en;->wv:Lnbisdk/kn;

    if-nez v0, :cond_5

    iget-object v0, p0, Lnbisdk/en;->wu:Lnbisdk/kn;

    :cond_5
    if-eqz v0, :cond_6

    const/16 v1, -0x3c

    invoke-virtual {v0, p1, p0, v5, v1}, Lnbisdk/kn;->a(Landroid/graphics/Canvas;Lnbisdk/lf;II)V

    :cond_6
    return-void
.end method

.method public final a(IIZ)Z
    .locals 8

    const/4 v5, 0x1

    const/4 v7, 0x0

    invoke-direct {p0, p1}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-nez v0, :cond_0

    move v0, v7

    :goto_0
    return v0

    :cond_0
    invoke-virtual {v0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {v0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    move-object v0, p0

    move v6, p3

    invoke-virtual/range {v0 .. v6}, Lnbisdk/en;->a(DDZZ)V

    invoke-virtual {p0, p2, v7, p3}, Lnbisdk/en;->a(IZZ)V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    move v0, v5

    goto :goto_0
.end method

.method public final a(ILcom/nbi/map/android/Pin;ZZ)Z
    .locals 6

    const/4 v5, 0x1

    const/4 v2, 0x0

    move v0, v2

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v0, v1, :cond_5

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iget v1, v1, Lnbisdk/au;->xq:I

    if-ne v1, p1, :cond_4

    new-instance v1, Lnbisdk/kn;

    invoke-direct {v1, p2}, Lnbisdk/kn;-><init>(Lcom/nbi/map/android/Pin;)V

    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v2

    if-lez v2, :cond_0

    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v2

    const/4 v3, 0x7

    if-gt v2, v3, :cond_0

    iget-object v2, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v3

    sub-int/2addr v3, v5

    aget-object v2, v2, v3

    invoke-virtual {p2, v2}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_0
    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v2

    const/16 v3, 0xc

    if-ne v2, v3, :cond_1

    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v2

    if-nez v2, :cond_1

    iget-object v2, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    const/16 v3, 0xb

    aget-object v2, v2, v3

    invoke-virtual {p2, v2}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_1
    invoke-virtual {p2}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Lcom/nbi/map/data/MapLocation;->getLatitude()D

    move-result-wide v3

    invoke-virtual {v1, v3, v4}, Lnbisdk/kn;->setLatitude(D)V

    invoke-virtual {v2}, Lcom/nbi/map/data/MapLocation;->getLongitude()D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Lnbisdk/kn;->setLongitude(D)V

    :cond_2
    iput p1, v1, Lnbisdk/au;->xq:I

    iget-object v2, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v2, v0, v1}, Lnbisdk/hc;->a(ILnbisdk/au;)V

    if-eqz p3, :cond_3

    invoke-virtual {p0, p1, p4}, Lnbisdk/en;->a(IZ)Z

    :cond_3
    move v0, v5

    :goto_1
    return v0

    :cond_4
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_5
    move v0, v2

    goto :goto_1
.end method

.method public final a(IZ)Z
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    const/4 v1, 0x0

    move v2, v4

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v2, v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v2}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget v3, v0, Lnbisdk/au;->xq:I

    if-ne v3, p1, :cond_1

    move-object v1, v0

    :cond_0
    if-nez v1, :cond_2

    move v0, v4

    :goto_1
    return v0

    :cond_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    check-cast v0, Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->ax()V

    iput-boolean v5, v1, Lnbisdk/au;->xr:Z

    invoke-direct {p0, v1, p2}, Lnbisdk/en;->a(Lnbisdk/kn;Z)V

    iget-boolean v0, p0, Lnbisdk/en;->wI:Z

    if-eqz v0, :cond_3

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v0

    invoke-interface {v0, p1}, Lnbisdk/no;->as(I)V

    :cond_3
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    move v0, v5

    goto :goto_1
.end method

.method public final a(Lcom/nbi/map/android/Pin;Z)Z
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    if-nez p1, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    const/4 v1, 0x0

    move v2, v4

    :goto_1
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v2, v0, :cond_1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v2}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget-object v3, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-ne v3, p1, :cond_2

    move-object v1, v0

    :cond_1
    if-nez v1, :cond_3

    move v0, v4

    goto :goto_0

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :cond_3
    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    check-cast v0, Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->ax()V

    iput-boolean v5, v1, Lnbisdk/au;->xr:Z

    invoke-direct {p0, v1, p2}, Lnbisdk/en;->a(Lnbisdk/kn;Z)V

    iget-boolean v0, p0, Lnbisdk/en;->wI:Z

    if-eqz v0, :cond_4

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v0

    iget v1, v1, Lnbisdk/au;->xq:I

    invoke-interface {v0, v1}, Lnbisdk/no;->as(I)V

    :cond_4
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    move v0, v5

    goto :goto_0
.end method

.method public final a(Lnbisdk/nv;)Z
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - onTouchEvent()"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    invoke-direct {p0, p1}, Lnbisdk/en;->b(Lnbisdk/nv;)Z

    move-result v0

    return v0
.end method

.method protected final ax()V
    .locals 3

    const/4 v2, 0x0

    move v0, v2

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iput-boolean v2, v1, Lnbisdk/au;->xr:Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    return-void
.end method

.method protected final ay()Lcom/nbi/map/android/Pin;
    .locals 2

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0, v0}, Lnbisdk/en;->getPin(I)Lcom/nbi/map/android/Pin;

    move-result-object v0

    goto :goto_0
.end method

.method protected final az()I
    .locals 3

    const/4 v0, 0x0

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iget-boolean v2, v1, Lnbisdk/au;->xr:Z

    if-eqz v2, :cond_0

    iget v0, v1, Lnbisdk/au;->xq:I

    :goto_1
    return v0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, -0x1

    goto :goto_1
.end method

.method public final b(IIZ)I
    .locals 9

    const/4 v8, -0x1

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v0, 0x2

    new-array v0, v0, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v1

    invoke-virtual {v1, p1, p2, v0}, Lnbisdk/kr;->a(II[D)V

    new-instance v1, Lcom/nbi/map/data/MapLocation;

    invoke-direct {v1}, Lcom/nbi/map/data/MapLocation;-><init>()V

    aget-wide v2, v0, v6

    aget-wide v4, v0, v7

    invoke-virtual {v1, v2, v3, v4, v5}, Lcom/nbi/map/data/MapLocation;->setLatLon(DD)V

    if-nez p3, :cond_3

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Lnbisdk/no;->onPinDropEvent(II)Z

    move-result v0

    :goto_0
    if-nez v0, :cond_2

    iget v0, p0, Lnbisdk/en;->wA:I

    if-eq v0, v8, :cond_0

    iget v0, p0, Lnbisdk/en;->wA:I

    invoke-virtual {p0, v0}, Lnbisdk/en;->removePin(I)V

    :cond_0
    new-instance v0, Lcom/nbi/map/data/Place;

    new-instance v2, Ljava/lang/String;

    const-string v3, "Drag to move pin"

    invoke-direct {v2, v3}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2, v1}, Lcom/nbi/map/data/Place;-><init>(Ljava/lang/String;Lcom/nbi/map/data/MapLocation;)V

    new-instance v1, Lcom/nbi/map/android/Pin;

    const/4 v2, 0x4

    invoke-direct {v1, v2, v0, v7}, Lcom/nbi/map/android/Pin;-><init>(ILcom/nbi/map/data/Place;Z)V

    if-nez p3, :cond_1

    move v0, v7

    :goto_1
    invoke-virtual {p0, v1, v7, v6, v0}, Lnbisdk/en;->a(Lcom/nbi/map/android/Pin;ZZZ)I

    move-result v0

    iput v0, p0, Lnbisdk/en;->wA:I

    invoke-direct {p0, v0}, Lnbisdk/en;->bk(I)Z

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v1

    invoke-interface {v1, v0}, Lnbisdk/no;->ar(I)V

    :goto_2
    return v0

    :cond_1
    move v0, v6

    goto :goto_1

    :cond_2
    move v0, v8

    goto :goto_2

    :cond_3
    move v0, v6

    goto :goto_0
.end method

.method public b(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Z)V
    .locals 3

    invoke-virtual {p0}, Lnbisdk/en;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iget-boolean v2, v1, Lnbisdk/au;->xr:Z

    if-eqz v2, :cond_1

    invoke-virtual {v1, p1, p2, p0, p3}, Lnbisdk/au;->a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Lnbisdk/lf;Z)V

    :cond_0
    return-void

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public final cancelPinDrag()V
    .locals 3

    const/4 v2, -0x1

    iget v0, p0, Lnbisdk/en;->wy:I

    iget-object v1, p0, Lnbisdk/en;->wC:[D

    invoke-direct {p0, v0, v1}, Lnbisdk/en;->a(I[D)Z

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/en;->wH:I

    iput v2, p0, Lnbisdk/en;->wy:I

    iput v2, p0, Lnbisdk/en;->wz:I

    return-void
.end method

.method public final e(Landroid/view/MotionEvent;)Z
    .locals 6

    const/4 v5, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - onLongPress()"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    :cond_0
    iget v0, p0, Lnbisdk/en;->wH:I

    if-ne v0, v5, :cond_7

    iget v0, p0, Lnbisdk/en;->wz:I

    invoke-direct {p0, v0}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-nez v0, :cond_1

    move v0, v3

    :goto_0
    return v0

    :cond_1
    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-nez v0, :cond_2

    move v0, v3

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v1

    iget v2, p0, Lnbisdk/en;->wz:I

    invoke-interface {v1, v2}, Lnbisdk/no;->onPinDragRequest(I)Z

    move-result v1

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->isDropPin()Z

    move-result v0

    if-nez v0, :cond_3

    if-eqz v1, :cond_5

    :cond_3
    iget v0, p0, Lnbisdk/en;->wz:I

    iput v0, p0, Lnbisdk/en;->wy:I

    const/4 v0, 0x3

    iput v0, p0, Lnbisdk/en;->wH:I

    new-array v0, v5, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {v1, v2, v3, v0}, Lnbisdk/kr;->a(II[D)V

    iget v1, p0, Lnbisdk/en;->wy:I

    invoke-direct {p0, v1, v0}, Lnbisdk/en;->a(I[D)Z

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    invoke-direct {p0, v0, v1}, Lnbisdk/en;->f(II)V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "onLongPress event occurred. Moving the pin!"

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    move v0, v4

    goto :goto_0

    :cond_5
    invoke-direct {p0}, Lnbisdk/en;->kB()V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_6

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "onLongPress event occurred. Movement is NOT ALLOWED on this pin."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_6
    move v0, v3

    goto :goto_0

    :cond_7
    iget-boolean v0, p0, Lnbisdk/en;->wI:Z

    if-eqz v0, :cond_8

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p0, v0, v1, v3}, Lnbisdk/en;->b(IIZ)I

    move v0, v4

    goto :goto_0

    :cond_8
    move v0, v3

    goto/16 :goto_0
.end method

.method public final f(Landroid/view/MotionEvent;)Z
    .locals 3

    const/4 v0, 0x0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " - onShowPress()"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    iget v1, p0, Lnbisdk/en;->wH:I

    if-lez v1, :cond_0

    const/4 v0, 0x1

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v2, "onShowPress event occurred."

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return v0
.end method

.method protected final g(II)Z
    .locals 3

    const/4 v2, 0x0

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    move v0, v2

    :goto_0
    return v0

    :cond_0
    invoke-direct {p0, v0}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-eqz v0, :cond_1

    new-instance v1, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v1}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {v0, p0, v1}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v0

    mul-int/lit8 v0, v0, 0x3

    div-int/lit8 v0, v0, 0x4

    invoke-virtual {v1, v0}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    invoke-virtual {v1, p1, p2}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_0
.end method

.method public gB()Z
    .locals 1

    invoke-virtual {p0}, Lnbisdk/en;->isVisible()Z

    move-result v0

    return v0
.end method

.method public final getNextPin(I)I
    .locals 6

    const/4 v3, 0x0

    const/4 v5, -0x1

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1}, Lnbisdk/hc;->size()I

    move-result v2

    if-nez v2, :cond_0

    move v1, v5

    :goto_0
    return v1

    :cond_0
    if-ne p1, v5, :cond_1

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v3}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    iget v1, v1, Lnbisdk/au;->xq:I

    goto :goto_0

    :cond_1
    move v4, v3

    :goto_1
    if-ge v3, v2, :cond_3

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v3}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v1

    if-eqz v4, :cond_2

    move-object v0, v1

    check-cast v0, Lnbisdk/kn;

    move-object p0, v0

    iget v1, p0, Lnbisdk/au;->xq:I

    goto :goto_0

    :cond_2
    iget v1, v1, Lnbisdk/au;->xq:I

    if-ne v1, p1, :cond_4

    const/4 v1, 0x1

    :goto_2
    add-int/lit8 v3, v3, 0x1

    move v4, v1

    goto :goto_1

    :cond_3
    move v1, v5

    goto :goto_0

    :cond_4
    move v1, v4

    goto :goto_2
.end method

.method public final getPin(I)Lcom/nbi/map/android/Pin;
    .locals 4

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "getPin() - trying to retrieve pin with id "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    invoke-direct {p0, p1}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v0

    if-eqz v0, :cond_2

    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "getPin() - Returning pin:  "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    :goto_0
    return-object v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final getPinCount()I
    .locals 1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    return v0
.end method

.method public final getPrevPin(I)I
    .locals 4

    const/4 v1, 0x0

    const/4 v3, -0x1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-nez v0, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    if-ne p1, v3, :cond_2

    move v0, v1

    :goto_1
    if-eq v0, v3, :cond_3

    iget-object v1, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v1, v0}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object p0

    check-cast p0, Lnbisdk/kn;

    iget v0, p0, Lnbisdk/au;->xq:I

    goto :goto_0

    :cond_1
    add-int/lit8 v1, v1, 0x1

    :cond_2
    if-ge v1, v0, :cond_4

    iget-object v2, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v2, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v2

    iget v2, v2, Lnbisdk/au;->xq:I

    if-ne v2, p1, :cond_1

    const/4 v0, 0x1

    sub-int v0, v1, v0

    goto :goto_1

    :cond_3
    move v0, v3

    goto :goto_0

    :cond_4
    move v0, v3

    goto :goto_1
.end method

.method public final onDoubleTap(Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v0, 0x2

    new-array v0, v0, [I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    float-to-int v1, v1

    aput v1, v0, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    aput v1, v0, v3

    aget v1, v0, v2

    aget v0, v0, v3

    invoke-virtual {p0, v1, v0}, Lnbisdk/en;->g(II)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    move v0, v2

    goto :goto_0
.end method

.method public final onDown(Landroid/view/MotionEvent;)Z
    .locals 1

    new-instance v0, Lnbisdk/nv;

    invoke-direct {v0, p1}, Lnbisdk/nv;-><init>(Landroid/view/MotionEvent;)V

    invoke-direct {p0, v0}, Lnbisdk/en;->b(Lnbisdk/nv;)Z

    move-result v0

    return v0
.end method

.method public final onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 2

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "onFling - handling up event."

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    invoke-direct {p0, p2}, Lnbisdk/en;->i(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public final onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 9

    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - onScroll(e1)"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - onScroll(e2)"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    iget v0, p0, Lnbisdk/en;->wH:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_3

    iget v0, p0, Lnbisdk/en;->wz:I

    invoke-direct {p0, v0}, Lnbisdk/en;->bl(I)Lnbisdk/kn;

    move-result-object v3

    if-nez v3, :cond_0

    move v0, v6

    :goto_0
    return v0

    :cond_0
    iget-object v0, v3, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-nez v0, :cond_1

    move v0, v6

    goto :goto_0

    :cond_1
    new-array v5, v8, [I

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v0

    invoke-virtual {v3}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {v3}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->a(DD[I)V

    aget v0, v5, v6

    int-to-float v0, v0

    sub-float/2addr v0, p3

    float-to-int v0, v0

    aput v0, v5, v6

    aget v0, v5, v7

    int-to-float v0, v0

    sub-float/2addr v0, p4

    float-to-int v0, v0

    aput v0, v5, v7

    new-array v0, v8, [D

    invoke-virtual {p0}, Lnbisdk/en;->ai()Lnbisdk/kr;

    move-result-object v1

    aget v2, v5, v6

    aget v3, v5, v7

    invoke-virtual {v1, v2, v3, v0}, Lnbisdk/kr;->a(II[D)V

    iget v1, p0, Lnbisdk/en;->wy:I

    invoke-direct {p0, v1, v0}, Lnbisdk/en;->a(I[D)Z

    aget v0, v5, v6

    aget v1, v5, v7

    invoke-direct {p0, v0, v1}, Lnbisdk/en;->f(II)V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    :cond_2
    :goto_1
    move v0, v6

    goto :goto_0

    :cond_3
    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "--------------------- SCROLL EVENT NOT HANDLED ---------------"

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method public final onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
    .locals 8

    const/4 v7, -0x1

    const/4 v6, 0x0

    const/4 v5, 0x1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - onSingleTapConfirmed()"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    const/4 v0, 0x2

    new-array v1, v0, [I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    aput v0, v1, v6

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    aput v0, v1, v5

    invoke-virtual {p0}, Lnbisdk/en;->az()I

    move-result v0

    aget v2, v1, v6

    aget v3, v1, v5

    invoke-virtual {p0, v2, v3}, Lnbisdk/en;->g(II)Z

    move-result v2

    if-eqz v2, :cond_8

    iput v7, p0, Lnbisdk/en;->wy:I

    sget-boolean v2, Lnbisdk/bk;->DEBUG:Z

    if-eqz v2, :cond_0

    iget-object v2, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v3, "onSingleTapConfirmed() - Click in bubble"

    invoke-static {v2, v3}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v2

    invoke-virtual {v2}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v2

    if-eqz v2, :cond_2

    iget-boolean v3, p0, Lnbisdk/en;->wI:Z

    if-eqz v3, :cond_1

    invoke-interface {v2, v0, v5}, Lnbisdk/no;->onPinTouched(IZ)Z

    :cond_1
    iget-boolean v3, p0, Lnbisdk/en;->wJ:Z

    if-eqz v3, :cond_2

    new-instance v3, Lcom/nbi/map/data/TrafficIncident;

    invoke-virtual {p0, v0}, Lnbisdk/en;->getPin(I)Lcom/nbi/map/android/Pin;

    move-result-object v0

    check-cast v0, Lnbisdk/pz;

    iget-object v0, v0, Lnbisdk/pz;->wS:Lnbisdk/pp;

    invoke-direct {v3, v0}, Lcom/nbi/map/data/TrafficIncident;-><init>(Ljava/lang/Object;)V

    invoke-interface {v2, v3}, Lnbisdk/no;->a(Lcom/nbi/map/data/TrafficIncident;)V

    :cond_2
    move v2, v5

    :goto_0
    if-nez v2, :cond_4

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v0

    check-cast v0, Lnbisdk/ao;

    aget v3, v1, v6

    aget v4, v1, v5

    invoke-virtual {v0, v3, v4}, Lnbisdk/ao;->a(II)Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-direct {p0}, Lnbisdk/en;->kB()V

    move v0, v6

    :cond_3
    :goto_1
    return v0

    :cond_4
    if-nez v2, :cond_7

    invoke-direct {p0, v1}, Lnbisdk/en;->b([I)I

    move-result v0

    if-eq v0, v7, :cond_7

    invoke-direct {p0, v1}, Lnbisdk/en;->d([I)I

    move-result v0

    if-eq v0, v7, :cond_7

    invoke-virtual {p0}, Lnbisdk/en;->ia()Lnbisdk/lf;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v1

    if-eqz v1, :cond_6

    iget-boolean v3, p0, Lnbisdk/en;->wI:Z

    if-eqz v3, :cond_6

    invoke-interface {v1, v0, v6}, Lnbisdk/no;->onPinTouched(IZ)Z

    move-result v1

    :goto_2
    if-nez v1, :cond_5

    invoke-virtual {p0, v0, v5}, Lnbisdk/en;->a(IZ)Z

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    const-string v1, "onSingleTapConfirmed() - Selected a pin!"

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    move v0, v5

    :goto_3
    invoke-direct {p0}, Lnbisdk/en;->kB()V

    if-nez v0, :cond_3

    invoke-virtual {p0}, Lnbisdk/en;->ax()V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v1

    invoke-virtual {p0, p0, v1}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    goto :goto_1

    :cond_6
    move v1, v2

    goto :goto_2

    :cond_7
    move v0, v2

    goto :goto_3

    :cond_8
    move v2, v6

    goto :goto_0
.end method

.method public final removeAllPins()V
    .locals 1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->removeAll()V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    return-void
.end method

.method public final removePin(I)V
    .locals 4

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    const/4 v1, -0x1

    if-eq p1, v1, :cond_0

    if-nez v0, :cond_2

    :cond_0
    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "removePin() - mPlacemarkCollection is empty or pin ID is undefined "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_3

    iget-object v1, p0, Lnbisdk/en;->ws:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "removePin() - trying to remove pin "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    const/4 v1, 0x0

    :goto_1
    if-ge v1, v0, :cond_1

    iget-object v2, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v2, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v2

    iget v2, v2, Lnbisdk/au;->xq:I

    if-ne v2, p1, :cond_4

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->removeAt(I)V

    invoke-virtual {p0}, Lnbisdk/en;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    invoke-virtual {p0, p0, v0}, Lnbisdk/en;->a(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    goto :goto_0

    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method public final setPinDuringDrag(Lcom/nbi/map/android/Pin;)V
    .locals 2

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    iput-object p1, p0, Lnbisdk/en;->wx:Lcom/nbi/map/android/Pin;

    new-instance v0, Lnbisdk/kn;

    iget-object v1, p0, Lnbisdk/en;->wx:Lcom/nbi/map/android/Pin;

    invoke-direct {v0, v1}, Lnbisdk/kn;-><init>(Lcom/nbi/map/android/Pin;)V

    iput-object v0, p0, Lnbisdk/en;->wv:Lnbisdk/kn;

    :goto_0
    return-void

    :cond_0
    iput-object v0, p0, Lnbisdk/en;->wv:Lnbisdk/kn;

    iput-object v0, p0, Lnbisdk/en;->wx:Lcom/nbi/map/android/Pin;

    goto :goto_0
.end method

.method public final setPinImage(ILcom/nbi/map/android/PinImage;)Z
    .locals 4

    const/4 v3, 0x0

    move v1, v3

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget v2, v0, Lnbisdk/au;->xq:I

    if-ne v2, p1, :cond_0

    invoke-virtual {v0, p2}, Lnbisdk/kn;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    move v0, v3

    goto :goto_1
.end method

.method public final setStandardPinImage(ILcom/nbi/map/android/PinImage;)Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    if-lez p1, :cond_2

    const/4 v0, 0x7

    if-gt p1, v0, :cond_2

    iget-object v0, p0, Lnbisdk/en;->wO:[Lcom/nbi/map/android/PinImage;

    sub-int v1, p1, v3

    aput-object p2, v0, v1

    move v1, v2

    :goto_0
    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0, v1}, Lnbisdk/hc;->aZ(I)Lnbisdk/au;

    move-result-object v0

    check-cast v0, Lnbisdk/kn;

    iget-object v2, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v2}, Lcom/nbi/map/android/Pin;->getPinType()I

    move-result v2

    if-ne v2, p1, :cond_0

    invoke-virtual {v0, p2}, Lnbisdk/kn;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    move v0, v3

    :goto_1
    return v0

    :cond_2
    move v0, v2

    goto :goto_1
.end method

.method public final size()I
    .locals 1

    iget-object v0, p0, Lnbisdk/en;->wt:Lnbisdk/hc;

    invoke-virtual {v0}, Lnbisdk/hc;->size()I

    move-result v0

    return v0
.end method
